Repository navigation
Update agentic workflows to gh-aw v1.2.2 - #12559
Conversation
Recompile all agentic workflows with the checksum-verified gh-aw v1.2.2 release in strict mode with ShellCheck, apply the v1.2.2 codemod (cli-proxy: false on the review workflows), refresh the agentic-workflows agent and skill, align the gh-aw setup/setup-cli pins and the gh-aw-node image digest, and update the runtime/warning contract tests and README. Also documents the resolution of the gh-aw "Detection Runs" tracker #12385: its only case (Markdown Linter run 43034387593) was an apt DNS failure fixed by #12405. Fixes #12385 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🧪 Test quality review — PR #12559
Compared merge base 4f367c4f932338c7ccc4fb9ccfd6d8c6cab96fc6 with head 1a578de55f5437e3cf9303348a01d5b91f8c1603. Evidence applies to this head, not every intermediate commit.
Test-value evidence
| Contract | Evidence | Status |
|---|---|---|
Toolchain refresh to gh-aw v1.2.2 (generated *.lock.yml, action pins, agentic_commands.yml, maintenance workflow) |
Behavior-preserving refactor; expected to pass before and after. Existing check_action_pins.py and the offline contract tests in .github/scripts/ cover it. |
Unverified. The author reports green runs but this review did not execute them and has no accessible paired records. |
Updated contract tests (test_gh_aw_runtime_contracts.py, test_gh_aw_firewall_footer.py, test_agentic_workflow_warning_contracts.py) |
The author reports counterfactuals for firewall footer, Markdown tables, typed footer and dependabot toolset. | Static or author-reported only, not executed here. |
review*.agent.md and shared/*.md frontmatter (cli-proxy-false-when-bash-disabled codemod) |
Covered only by the compile result. | Not executable beyond compilation. |
Documentation and skill refresh (README.md, agentic-workflows agent and skill) |
No behavior. | Not applicable |
The author's red/green claims are not paired execution proof for this review. The author also reports one environmental failure on Windows (CRLF), identical on the base revision.
🧵 Parallel safety
STATUS: NOT_APPLICABLE. No test assemblies or parallelization configuration changed.
Per-test assessment
No test methods in scope. The manifest reports zero changed test files and regions (the changed .github/scripts/*.py tests are not MSTest C# tests), so there is nothing to grade. No inline findings.
This advisory review is heuristic and non-blocking. Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.
🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto (Claude Sonnet 5.5) · ~29 AIC · ⌖ ~2 AIC · ⊞ 8.4K
There was a problem hiding this comment.
🔵 Needs a closer look
Runtime compatibility across detection, artifact validation, and publication remains unverified because pinned upstream scripts were inaccessible and no hosted end-to-end run exercised those boundaries.
No open issues 🎉
What changed in this PR
Updates TestFx’s agentic CI automation from gh-aw v1.0.1 to v1.2.2, aligning generated workflows, runtime pins, and supporting guidance without changing MSTest or Microsoft.Testing.Platform product code.
Changes:
- Regenerates workflows with the upgraded compiler and updates setup-action and runtime-image pins.
- Explicitly disables CLI proxy access in shell-disabled review workflows.
- Adapts offline contract tests and documents migration results and retained compatibility corrections.
Confidence at a glance
🟡 Workflow runtime — offline validation reported; hosted execution remains unverified
Test-value evidence: For source state 1a578de55f5437e3cf9303348a01d5b91f8c1603, the PR reports successful strict compilation of 37 inputs, passing component contracts, and counterfactual checks for retained corrections. It also reports one accepted checkout warning and a Windows line-ending test failure reproduced on the base revision. These results were not independently rerun; live workflow execution and publication remain untested.
| File | Description |
|---|---|
.github/workflows/weekly-issue-activity.lock.yml |
Regenerates runtime setup, prompt isolation, artifact validation, and detection wiring. |
.github/workflows/shared/test-reviewer-shared.md |
Updates correction documentation and makes its error message version-neutral. |
.github/workflows/shared/review-shared.md |
Disables CLI proxy access alongside shell access. |
.github/workflows/review.agent.md |
Explicitly disables the CLI proxy for command reviews. |
.github/workflows/review-on-open.agent.md |
Explicitly disables the CLI proxy for automatic reviews. |
.github/workflows/review-after-autofix.agent.md |
Explicitly disables the CLI proxy for follow-up reviews. |
.github/workflows/README.md |
Records upgrade details, validation, and retained workarounds. |
.github/workflows/check-action-pins.yml |
Uses v1.2.2 setup scripts for contract checks. |
.github/workflows/agentics-maintenance.yml |
Updates setup and compiler pins; adds explanatory permission comments. |
.github/workflows/agentic_commands.yml |
Updates generated metadata and setup pin; clarifies existing permissions. |
.github/skills/agentic-workflows/SKILL.md |
Refreshes workflow routing guidance while retaining repository contracts. |
.github/scripts/test_gh_aw_runtime_contracts.py |
Adapts prompt-binding checks to environment isolation and loader changes. |
.github/scripts/test_gh_aw_firewall_footer.py |
Matches the version-neutral correction error message. |
.github/scripts/test_agentic_workflow_warning_contracts.py |
Updates the expected GitHub MCP server version. |
.github/aw/actions-lock.json |
Aligns setup-action pins and the cached Node image digest. |
.github/agents/agentic-workflows.md |
Refreshes debugging, upgrade, and workflow-operation guidance. |
Review effort: Balanced
Pull request
Summary
Upgrades the repository's GitHub Agentic Workflows toolchain from gh-aw v1.0.1 to v1.2.2 (the latest stable release, published November 10, 2026) and recompiles every agentic workflow in strict mode. Fixes #12385.
--strict --shellcheck), regenerating every*.lock.yml,agentic_commands.yml, andagentics-maintenance.yml.cli-proxy-false-when-bash-disabledcodemod (gh aw fix --write) toreview.agent.md,review-on-open.agent.md,review-after-autofix.agent.md, andshared/review-shared.md.github/gh-aw-actions/setupandsetup-clito v1.2.2 (53d0749e19424a918acd82b4d140264ce48f2f14) in.github/aw/actions-lock.jsonand in the handwrittencheck-action-pins.ymlstep.ghcr.io/github/gh-aw-nodeentry to the v1.2.2 catalog digestsha256:8735428c2d4e602f90781ba0c571c400e8ff93c7ee1508a75d71f87e34e415cc(multi-arch amd64/arm64 index, Node.js v26.13.0). Otherwise, the stale v1.0.1 digest survives compilation because cached entries override the compiler catalog..github/agents/agentic-workflows.mdand.github/skills/agentic-workflows/SKILL.mdfrom v1.2.2, preserving the repository overlay.requireform, and GitHub MCP server v2.1.0. Made the firewall-correction wording version-neutral..github/workflows/README.mdwith the toolchain, migration notes, compile results, the v1.2.2 revalidation of each retained correction, and the [aw] Detection Runs #12385 resolution.Upstream components now in use: AWF firewall 0.29.11, MCP gateway v0.5.6, and GitHub MCP server v2.1.0. Explicit Copilot CLI overrides stay at 1.0.103, which is listed in v1.2.2's
release_integrity.sh.This change adds no new action or action SHA. The only
uses:changes are:download-artifact(+35) andgithub-script(+80) steps that reuse already-pinned SHAs.No permissions were added. The generated maintenance and command workflows only gain explanatory comments on their existing permissions.
#12385
#12385 is gh-aw's auto-managed "Detection Runs" tracker. Its only case was Markdown Linter run 43034387593, which failed during startup because apt could not resolve
azure.archive.ubuntu.com. #12405 (6eba42d3890ac74d4e776bdcc72e4a76f35a7a2a, "Avoid Azure mirror DNS failures in Markdown Linter startup") fixed that failure, and subsequent runs are green. gh-aw recreates the tracker automatically if a new detection failure occurs.Design and decision record
This is a routine toolchain refresh. It follows the documented process in
.github/workflows/README.md("Compile on the pinned toolchain, and check the pins afterwards"); the previous refresh was d9e38dc (#12183). No separate decision record is needed because there is no new feature. The README records each re-evaluation below.I re-evaluated the retained workarounds against v1.2.2, and all are still required:
enabledexpression ([aw] Detection Runs #11263);set_issue_type(v1.2.2 still treats issueTypeas a custom field);aw.jsonupload-artifact v7.0.1 → v7.0.2 redirect;{history_link}placement;dependabottoolset (allstill excludes it; the compiled bundler usesGITHUB_TOOLSETS: "all,dependabot");env.REVIEW_PR_NUMBERfallback (isSafeExpressionstill rejectsfromJSON).One new compiler warning is accepted: the
build-failure-analysischeckout warning aboutcheckout.refusingneeds.fetch-binlog.outputs.pr-head-sha. Reasons:check_runcarries no PR payload, so compiler-managed PR checkout cannot apply..mcp.json) are a superset of v1.2.2's.agents .github/AGENTS.mdrestore.python3 -I), and nothing is built.Demonstration
Not applicable: this changes the CI workflow toolchain only and has no user-visible product output. Text transcripts of the compile and test results are below. No workflow was dispatched and nothing was published from these checks.
Validation and regression proof
The source state is commit
1a578de55f5437e3cf9303348a01d5b91f8c1603. The checks ran on the identical.githubtree before a clean rebase onto4f367c4f9, which has no.githubchanges. Environment: Windows, Python 3.12.10.$actionsholds the v1.2.2 setup-action scripts staged fromgithub/gh-aw-actions@53d0749e19424a918acd82b4d140264ce48f2f14. Prerequisite:python -m pip install --disable-pip-version-check --require-hashes -r .github/scripts/check-action-pins-requirements.txt.gh-aw.exe compile --strict --no-check-update --shellcheck(v1.2.2 release binary, SHA-2565ed67185ce18c9b4c2bc6ea16f5ec914773fae12ac18782b59028c7c8605ae91)Compiled 37 workflows: 37 succeeded, 1 warning(the accepted checkout warning above); exit 0python .github/scripts/check_action_pins.pyAction pin audit passed: 2884 reference(s) across 60 file(s); exit 0python .github/scripts/test_gh_aw_firewall_footer.py --module-path "$actions\firewall_blocked_domains.cjs"python .github/scripts/test_gh_aw_runtime_contracts.py --actions-dir "$actions"python .github/scripts/test_gh_aw_review_footer.py --scripts-directory "$actions"python .github/scripts/test_build_failure_analysis_checkout.pypython .github/scripts/test_agentic_workflow_warning_contracts.pyThe single warning-contract failure is
UnskipPublisherContractTests.test_verified_package_pushes_exact_commit_and_draft_with_ephemeral_auth. It is environmental: Windows CRLF checkout line endings. It fails identically on the base revision and is unrelated to this change. The remaining 35 executed tests pass.Generated-output checks:
uses:reference outside setup and setup-cli changed SHA.Not run:
These require hosted runs and are covered only by the offline component contracts above.
Test-value evidence
This change preserves behavior: the workflow logic is unchanged and only the compiler and runtime version moves. The existing suites pass on the new revision (green-after); the base revision was green on v1.0.1 apart from the same CRLF environmental failure.
To confirm v1.2.2 did not make any retained correction unnecessary, I reran the existing counterfactuals against the v1.2.2 setup scripts at
53d0749e19424a918acd82b4d140264ce48f2f14:--without-correction GhAwFirewallFooterTests.test_explicit_denial_is_not_hidden_by_status_or_later_success)['github.com'] != []; 1 test, exit 1test_authored_test_review_scorecard_publishes_as_markdown_table,test_review_table_preserves_escaped_cells_and_collapsed_rowswith--workflow-rootbaseline)<table>; exit 1test_authored_test_review_footer_publishes_complete_advisory_review,test_public_review_resolver_honors_explicit_public_only_policywith--workflow-rootbaseline)Report nodes cannot appear in scalar fields, integrityapproved); exit 1test_dependabot_compiled_inventory_preserves_all_existing_reads)dependabotfromall, so alert-read tools would be missingdependabottoolsetThe exact reproduction commands are in the README sections for each correction.